package com.zp.base.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zp.base.admin.vo.RoleVo;
import com.zp.base.admin.entity.RoleEntity;
import com.zp.base.admin.common.utils.PageUtils;

import java.util.Map;

/**
 * 
 *
 * @author zhangpeng
 * @email zhangpeng@aliyun.com
 * @date 2021-02-28 11:15:56
 */
public interface RoleService extends IService<RoleEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取角色已经该角色的所有权限
     * @param id
     * @return
     */
    RoleEntity selectByRoleId(Long id);

    boolean addRole(RoleVo addRoleVo);

    boolean updateRole(RoleVo updateRoleVo);

    Integer deleteRoleById(Long id);
}

